/*
 * @Description: 
 * @Version: 1.0
 * @Autor: zenghao
 * @Date: 2023-12-06 10:09:51
 * @LastEditors: zenghao
 * @LastEditTime: 2023-12-06 17:26:02
 */
import { getapi,postapi } from "@/utils/axiosHttp";

export const getindex = () => getapi("/api");
export const readServerFile = (data) => postapi("/file/read",data);
export const writeServerFile = (data) => postapi("/file/write",data);
export const writeRegisterFile = (data) => postapi("/file/write",data);
export const readRegisterFile = (data) => postapi("/file/read",data);

// 获取注册中心状态
export const getEurkaStatus = (data) => postapi("/server/status",data);

// 解压文件
export const fileUnzip= (data) => postapi("/file/unzip",data);
// 分发文件
export const fileDistribute= (data) => postapi("/file/distribute",data);
// 备份文件
export const fileBackup= (data) => postapi("/file/backup",data);
// 解压分发后的文件到具体目录
export const fileUnzipUpd= (data) => postapi("/file/unzipUpd",data);
// 重启服务
export const restartServer= (data) => postapi("/file/restartServer",data);
// 读取重启日志
export const readRestLog= (data) => postapi("/file/readlog",data);
// 删除指定目录下文件
export const delFolderFile= (data) => postapi("/file/delFolderFile",data);